<template>
	<view>
		<navbar left-text="返回" titleText="快速入库" />
		<rform :form-data="itemForm" />
	</view>
</template>

<script>
	import tabbar from '@/components/tabbar.vue'
	import navbar from '@/components/navbar.vue'
	import rform from './components/rf-form.vue'
	import { itemForm } from './config/form.js'
	export default {
		data() {
			return {
				itemForm: itemForm,
				swiperHeight: '',
			};
		},
		components: {
			tabbar,
			navbar,
			rform
		},
		onLoad(args) {
		    
		  },
		methods: {
			//动态设置swiper的高度
			setSwiperHeight() {
				let query = uni.createSelectorQuery().in(this);
				query.select('.form-swiper').boundingClientRect();
				query.exec((res) => {
					if (res && res[0]) {
						this.swiperHeight = res[0].height;
					}
				});
			},
		}
	}
</script>

<style lang="scss">

</style>
